package pers.cocoadel.springcloud.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import pers.cocoadel.springcloud.service.MsgProviderService;

import javax.annotation.Resource;

/**
 * @author ZhenWuWang
 */
@RestController
public class MsgProviderController
{
    @Resource
    private MsgProviderService msgProviderService;

    @GetMapping("/send")
    public String sen()
    {
        msgProviderService.send();
        return "发送成功！";
    }
}
